<?php

namespace App\Models;

use App\Models\Traits\Filterable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Reports extends Model
{
    use HasFactory;
    use Filterable;

    protected $guarded = [];


    public function center()
    {
        return $this->belongsTo(Centers::class, 'centers_id', 'id');
    }

    public function instructor()
    {
        return $this->belongsTo(Instructors::class, 'instructors_id', 'id');
    }
    public function member()
    {
        return $this->belongsTo(Members::class,'members_id', 'id');
    }
}
